package cn.itcast.bos.dao.take_delivery;

import java.util.Date;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.take_delivery.Promotion;

public interface PromotionDao extends JpaRepository<Promotion, Integer>{
	
	@Query("update Promotion set status='1',title='洪宽的书包' where id=30")
	@Modifying
	void update();
}
